expand logarithmic expressions